<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>lacewing.moo.packetloaders.client</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="lacewing-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="http://mp2.dk">Python Lacewing Library</a></th>
          </tr></table></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="lacewing-module.html">Package&nbsp;lacewing</a> ::
        <a href="lacewing.moo-module.html">Package&nbsp;moo</a> ::
        <a href="lacewing.moo.packetloaders-module.html">Package&nbsp;packetloaders</a> ::
        Module&nbsp;client
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="lacewing.moo.packetloaders.client-pysrc.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<h1 class="epydoc">Source Code for <a href="lacewing.moo.packetloaders.client-module.html">Module lacewing.moo.packetloaders.client</a></h1>
<pre class="py-src">
<a name="L1"></a><tt class="py-lineno">  1</tt>  <tt class="py-line"><tt class="py-comment"># Copyright (c) 2011 Mathias Kaerlev.</tt> </tt>
<a name="L2"></a><tt class="py-lineno">  2</tt>  <tt class="py-line"><tt class="py-comment"># See LICENSE for details.</tt> </tt>
<a name="L3"></a><tt class="py-lineno">  3</tt>  <tt class="py-line"> </tt>
<a name="L4"></a><tt class="py-lineno">  4</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt class="py-name">struct</tt> <tt class="py-keyword">import</tt> <tt class="py-name">unpack_from</tt><tt class="py-op">,</tt> <tt class="py-name">pack</tt> </tt>
<a name="L5"></a><tt class="py-lineno">  5</tt>  <tt class="py-line"> </tt>
<a name="L6"></a><tt class="py-lineno">  6</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-0" class="py-name" targets="Package lacewing=lacewing-module.html"><a title="lacewing" class="py-name" href="#" onclick="return doclink('link-0', 'lacewing', 'link-0');">lacewing</a></tt><tt class="py-op">.</tt><tt id="link-1" class="py-name" targets="Package lacewing.moo=lacewing.moo-module.html"><a title="lacewing.moo" class="py-name" href="#" onclick="return doclink('link-1', 'moo', 'link-1');">moo</a></tt><tt class="py-op">.</tt><tt id="link-2" class="py-name" targets="Package lacewing.moo.packetloaders=lacewing.moo.packetloaders-module.html,Package lacewing.packetloaders=lacewing.packetloaders-module.html"><a title="lacewing.moo.packetloaders
lacewing.packetloaders" class="py-name" href="#" onclick="return doclink('link-2', 'packetloaders', 'link-2');">packetloaders</a></tt><tt class="py-op">.</tt><tt id="link-3" class="py-name" targets="Module lacewing.moo.packetloaders.common=lacewing.moo.packetloaders.common-module.html,Module lacewing.packetloaders.common=lacewing.packetloaders.common-module.html"><a title="lacewing.moo.packetloaders.common
lacewing.packetloaders.common" class="py-name" href="#" onclick="return doclink('link-3', 'common', 'link-3');">common</a></tt> <tt class="py-keyword">import</tt> <tt class="py-op">(</tt><tt id="link-4" class="py-name" targets="Function lacewing.moo.packetloaders.common.unpack_string()=lacewing.moo.packetloaders.common-module.html#unpack_string"><a title="lacewing.moo.packetloaders.common.unpack_string" class="py-name" href="#" onclick="return doclink('link-4', 'unpack_string', 'link-4');">unpack_string</a></tt><tt class="py-op">,</tt> <tt class="py-name">_MooLoader</tt><tt class="py-op">,</tt>  </tt>
<a name="L7"></a><tt class="py-lineno">  7</tt>  <tt class="py-line">    <tt class="py-name">_ChannelMixin</tt><tt class="py-op">,</tt> <tt class="py-name">_ConnectionMixin</tt><tt class="py-op">)</tt> </tt>
<a name="L8"></a><tt class="py-lineno">  8</tt>  <tt class="py-line"> </tt>
<a name="L9"></a><tt class="py-lineno">  9</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-5" class="py-name"><a title="lacewing" class="py-name" href="#" onclick="return doclink('link-5', 'lacewing', 'link-0');">lacewing</a></tt><tt class="py-op">.</tt><tt id="link-6" class="py-name"><a title="lacewing.moo" class="py-name" href="#" onclick="return doclink('link-6', 'moo', 'link-1');">moo</a></tt><tt class="py-op">.</tt><tt id="link-7" class="py-name"><a title="lacewing.moo.packetloaders
lacewing.packetloaders" class="py-name" href="#" onclick="return doclink('link-7', 'packetloaders', 'link-2');">packetloaders</a></tt><tt class="py-op">.</tt><tt id="link-8" class="py-name" targets="Variable lacewing.moo.packetloaders.client.ClientMessage.message=lacewing.moo.packetloaders.client.ClientMessage-class.html#message,Variable lacewing.moo.packetloaders.client.PrivateMessage.message=lacewing.moo.packetloaders.client.PrivateMessage-class.html#message,Variable lacewing.moo.packetloaders.client.ToChannelMessage.message=lacewing.moo.packetloaders.client.ToChannelMessage-class.html#message,Module lacewing.moo.packetloaders.message=lacewing.moo.packetloaders.message-module.html,Variable lacewing.moo.packetloaders.server.FromChannelMessage.message=lacewing.moo.packetloaders.server.FromChannelMessage-class.html#message"><a title="lacewing.moo.packetloaders.client.ClientMessage.message
lacewing.moo.packetloaders.client.PrivateMessage.message
lacewing.moo.packetloaders.client.ToChannelMessage.message
lacewing.moo.packetloaders.message
lacewing.moo.packetloaders.server.FromChannelMessage.message" class="py-name" href="#" onclick="return doclink('link-8', 'message', 'link-8');">message</a></tt> <tt class="py-keyword">import</tt> <tt id="link-9" class="py-name" targets="Class lacewing.moo.packetloaders.message.Message=lacewing.moo.packetloaders.message.Message-class.html"><a title="lacewing.moo.packetloaders.message.Message" class="py-name" href="#" onclick="return doclink('link-9', 'Message', 'link-9');">Message</a></tt> </tt>
<a name="L10"></a><tt class="py-lineno"> 10</tt>  <tt class="py-line"> </tt>
<a name="SetName"></a><div id="SetName-def"><a name="L11"></a><tt class="py-lineno"> 11</tt> <a class="py-toggle" href="#" id="SetName-toggle" onclick="return toggle('SetName');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="lacewing.moo.packetloaders.client.SetName-class.html">SetName</a><tt class="py-op">(</tt><tt class="py-base-class">_MooLoader</tt><tt class="py-op">,</tt> <tt class="py-base-class">_ConnectionMixin</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SetName-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="SetName-expanded"><a name="L12"></a><tt class="py-lineno"> 12</tt>  <tt class="py-line">    <tt id="link-10" class="py-name" targets="Variable lacewing.moo.packetloaders.client.SetName.majorVersion=lacewing.moo.packetloaders.client.SetName-class.html#majorVersion,Variable lacewing.moo.packetloaders.server.AssignedID.majorVersion=lacewing.moo.packetloaders.server.AssignedID-class.html#majorVersion"><a title="lacewing.moo.packetloaders.client.SetName.majorVersion
lacewing.moo.packetloaders.server.AssignedID.majorVersion" class="py-name" href="#" onclick="return doclink('link-10', 'majorVersion', 'link-10');">majorVersion</a></tt> <tt class="py-op">=</tt> <tt class="py-number">3</tt> <tt class="py-comment"># don't want our user to</tt> </tt>
<a name="L13"></a><tt class="py-lineno"> 13</tt>  <tt class="py-line">    <tt id="link-11" class="py-name" targets="Variable lacewing.moo.packetloaders.client.SetName.minorVersion=lacewing.moo.packetloaders.client.SetName-class.html#minorVersion,Variable lacewing.moo.packetloaders.server.AssignedID.minorVersion=lacewing.moo.packetloaders.server.AssignedID-class.html#minorVersion"><a title="lacewing.moo.packetloaders.client.SetName.minorVersion
lacewing.moo.packetloaders.server.AssignedID.minorVersion" class="py-name" href="#" onclick="return doclink('link-11', 'minorVersion', 'link-11');">minorVersion</a></tt> <tt class="py-op">=</tt> <tt class="py-number">0</tt> <tt class="py-comment"># fill these in</tt> </tt>
<a name="L14"></a><tt class="py-lineno"> 14</tt>  <tt class="py-line">    <tt id="link-12" class="py-name" targets="Variable lacewing.moo.packetloaders.client.SetName.playerName=lacewing.moo.packetloaders.client.SetName-class.html#playerName,Variable lacewing.moo.packetloaders.server.ChannelJoined.playerName=lacewing.moo.packetloaders.server.ChannelJoined-class.html#playerName,Variable lacewing.moo.packetloaders.server.PlayerChanged.playerName=lacewing.moo.packetloaders.server.PlayerChanged-class.html#playerName"><a title="lacewing.moo.packetloaders.client.SetName.playerName
lacewing.moo.packetloaders.server.ChannelJoined.playerName
lacewing.moo.packetloaders.server.PlayerChanged.playerName" class="py-name" href="#" onclick="return doclink('link-12', 'playerName', 'link-12');">playerName</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L15"></a><tt class="py-lineno"> 15</tt>  <tt class="py-line">     </tt>
<a name="SetName._load"></a><div id="SetName._load-def"><a name="L16"></a><tt class="py-lineno"> 16</tt> <a class="py-toggle" href="#" id="SetName._load-toggle" onclick="return toggle('SetName._load');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="lacewing.moo.packetloaders.client.SetName-class.html#_load">_load</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">data</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SetName._load-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="SetName._load-expanded"><a name="L17"></a><tt class="py-lineno"> 17</tt>  <tt class="py-line">        <tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-13" class="py-name"><a title="lacewing.moo.packetloaders.client.SetName.majorVersion
lacewing.moo.packetloaders.server.AssignedID.majorVersion" class="py-name" href="#" onclick="return doclink('link-13', 'majorVersion', 'link-10');">majorVersion</a></tt><tt class="py-op">,</tt> </tt>
<a name="L18"></a><tt class="py-lineno"> 18</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-14" class="py-name"><a title="lacewing.moo.packetloaders.client.SetName.minorVersion
lacewing.moo.packetloaders.server.AssignedID.minorVersion" class="py-name" href="#" onclick="return doclink('link-14', 'minorVersion', 'link-11');">minorVersion</a></tt><tt class="py-op">,</tt> </tt>
<a name="L19"></a><tt class="py-lineno"> 19</tt>  <tt class="py-line">        <tt class="py-name">nameSize</tt><tt class="py-op">)</tt> <tt class="py-op">=</tt> <tt class="py-name">unpack_from</tt><tt class="py-op">(</tt><tt class="py-string">'&lt;BBI'</tt><tt class="py-op">,</tt> <tt id="link-15" class="py-name" targets="Method lacewing.bytereader.ByteReader.data()=lacewing.bytereader.ByteReader-class.html#data"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-15', 'data', 'link-15');">data</a></tt><tt class="py-op">)</tt> </tt>
<a name="L20"></a><tt class="py-lineno"> 20</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-16" class="py-name"><a title="lacewing.moo.packetloaders.client.SetName.playerName
lacewing.moo.packetloaders.server.ChannelJoined.playerName
lacewing.moo.packetloaders.server.PlayerChanged.playerName" class="py-name" href="#" onclick="return doclink('link-16', 'playerName', 'link-12');">playerName</a></tt> <tt class="py-op">=</tt> <tt id="link-17" class="py-name"><a title="lacewing.moo.packetloaders.common.unpack_string" class="py-name" href="#" onclick="return doclink('link-17', 'unpack_string', 'link-4');">unpack_string</a></tt><tt class="py-op">(</tt><tt id="link-18" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-18', 'data', 'link-15');">data</a></tt><tt class="py-op">,</tt> <tt class="py-name">nameSize</tt><tt class="py-op">,</tt> <tt class="py-number">6</tt><tt class="py-op">)</tt> </tt>
<a name="L21"></a><tt class="py-lineno"> 21</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-number">6</tt> <tt class="py-op">+</tt> <tt class="py-name">nameSize</tt> </tt>
</div><a name="L22"></a><tt class="py-lineno"> 22</tt>  <tt class="py-line">         </tt>
<a name="SetName.generate"></a><div id="SetName.generate-def"><a name="L23"></a><tt class="py-lineno"> 23</tt> <a class="py-toggle" href="#" id="SetName.generate-toggle" onclick="return toggle('SetName.generate');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="lacewing.moo.packetloaders.client.SetName-class.html#generate">generate</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="SetName.generate-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="SetName.generate-expanded"><a name="L24"></a><tt class="py-lineno"> 24</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">pack</tt><tt class="py-op">(</tt><tt class="py-string">'&lt;BBI'</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-19" class="py-name"><a title="lacewing.moo.packetloaders.client.SetName.majorVersion
lacewing.moo.packetloaders.server.AssignedID.majorVersion" class="py-name" href="#" onclick="return doclink('link-19', 'majorVersion', 'link-10');">majorVersion</a></tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-20" class="py-name"><a title="lacewing.moo.packetloaders.client.SetName.minorVersion
lacewing.moo.packetloaders.server.AssignedID.minorVersion" class="py-name" href="#" onclick="return doclink('link-20', 'minorVersion', 'link-11');">minorVersion</a></tt><tt class="py-op">,</tt>  </tt>
<a name="L25"></a><tt class="py-lineno"> 25</tt>  <tt class="py-line">            <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-21" class="py-name"><a title="lacewing.moo.packetloaders.client.SetName.playerName
lacewing.moo.packetloaders.server.ChannelJoined.playerName
lacewing.moo.packetloaders.server.PlayerChanged.playerName" class="py-name" href="#" onclick="return doclink('link-21', 'playerName', 'link-12');">playerName</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt> <tt class="py-op">+</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-22" class="py-name"><a title="lacewing.moo.packetloaders.client.SetName.playerName
lacewing.moo.packetloaders.server.ChannelJoined.playerName
lacewing.moo.packetloaders.server.PlayerChanged.playerName" class="py-name" href="#" onclick="return doclink('link-22', 'playerName', 'link-12');">playerName</a></tt> </tt>
</div></div><a name="L26"></a><tt class="py-lineno"> 26</tt>  <tt class="py-line"> </tt>
<a name="ClientMessage"></a><div id="ClientMessage-def"><a name="L27"></a><tt class="py-lineno"> 27</tt> <a class="py-toggle" href="#" id="ClientMessage-toggle" onclick="return toggle('ClientMessage');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="lacewing.moo.packetloaders.client.ClientMessage-class.html">ClientMessage</a><tt class="py-op">(</tt><tt class="py-base-class">_MooLoader</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="ClientMessage-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="ClientMessage-expanded"><a name="L28"></a><tt class="py-lineno"> 28</tt>  <tt class="py-line">    <tt id="link-23" class="py-name" targets="Variable lacewing.moo.packetloaders.client.ClientMessage.subchannel=lacewing.moo.packetloaders.client.ClientMessage-class.html#subchannel,Variable lacewing.moo.packetloaders.client.PrivateMessage.subchannel=lacewing.moo.packetloaders.client.PrivateMessage-class.html#subchannel,Variable lacewing.moo.packetloaders.client.ToChannelMessage.subchannel=lacewing.moo.packetloaders.client.ToChannelMessage-class.html#subchannel,Variable lacewing.moo.packetloaders.server.FromChannelMessage.subchannel=lacewing.moo.packetloaders.server.FromChannelMessage-class.html#subchannel"><a title="lacewing.moo.packetloaders.client.ClientMessage.subchannel
lacewing.moo.packetloaders.client.PrivateMessage.subchannel
lacewing.moo.packetloaders.client.ToChannelMessage.subchannel
lacewing.moo.packetloaders.server.FromChannelMessage.subchannel" class="py-name" href="#" onclick="return doclink('link-23', 'subchannel', 'link-23');">subchannel</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L29"></a><tt class="py-lineno"> 29</tt>  <tt class="py-line">    <tt id="link-24" class="py-name"><a title="lacewing.moo.packetloaders.client.ClientMessage.message
lacewing.moo.packetloaders.client.PrivateMessage.message
lacewing.moo.packetloaders.client.ToChannelMessage.message
lacewing.moo.packetloaders.message
lacewing.moo.packetloaders.server.FromChannelMessage.message" class="py-name" href="#" onclick="return doclink('link-24', 'message', 'link-8');">message</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L30"></a><tt class="py-lineno"> 30</tt>  <tt class="py-line">     </tt>
<a name="ClientMessage._load"></a><div id="ClientMessage._load-def"><a name="L31"></a><tt class="py-lineno"> 31</tt> <a class="py-toggle" href="#" id="ClientMessage._load-toggle" onclick="return toggle('ClientMessage._load');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="lacewing.moo.packetloaders.client.ClientMessage-class.html#_load">_load</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">data</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="ClientMessage._load-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="ClientMessage._load-expanded"><a name="L32"></a><tt class="py-lineno"> 32</tt>  <tt class="py-line">        <tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-25" class="py-name"><a title="lacewing.moo.packetloaders.client.ClientMessage.subchannel
lacewing.moo.packetloaders.client.PrivateMessage.subchannel
lacewing.moo.packetloaders.client.ToChannelMessage.subchannel
lacewing.moo.packetloaders.server.FromChannelMessage.subchannel" class="py-name" href="#" onclick="return doclink('link-25', 'subchannel', 'link-23');">subchannel</a></tt><tt class="py-op">,</tt> </tt>
<a name="L33"></a><tt class="py-lineno"> 33</tt>  <tt class="py-line">        <tt class="py-name">messageSize</tt><tt class="py-op">)</tt> <tt class="py-op">=</tt> <tt class="py-name">unpack_from</tt><tt class="py-op">(</tt><tt class="py-string">'&lt;HI'</tt><tt class="py-op">,</tt> <tt id="link-26" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-26', 'data', 'link-15');">data</a></tt><tt class="py-op">)</tt> </tt>
<a name="L34"></a><tt class="py-lineno"> 34</tt>  <tt class="py-line">         </tt>
<a name="L35"></a><tt class="py-lineno"> 35</tt>  <tt class="py-line">        <tt id="link-27" class="py-name"><a title="lacewing.moo.packetloaders.client.ClientMessage.message
lacewing.moo.packetloaders.client.PrivateMessage.message
lacewing.moo.packetloaders.client.ToChannelMessage.message
lacewing.moo.packetloaders.message
lacewing.moo.packetloaders.server.FromChannelMessage.message" class="py-name" href="#" onclick="return doclink('link-27', 'message', 'link-8');">message</a></tt> <tt class="py-op">=</tt> <tt id="link-28" class="py-name"><a title="lacewing.moo.packetloaders.message.Message" class="py-name" href="#" onclick="return doclink('link-28', 'Message', 'link-9');">Message</a></tt><tt class="py-op">(</tt><tt class="py-op">**</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">settings</tt><tt class="py-op">)</tt> </tt>
<a name="L36"></a><tt class="py-lineno"> 36</tt>  <tt class="py-line">        <tt id="link-29" class="py-name"><a title="lacewing.moo.packetloaders.client.ClientMessage.message
lacewing.moo.packetloaders.client.PrivateMessage.message
lacewing.moo.packetloaders.client.ToChannelMessage.message
lacewing.moo.packetloaders.message
lacewing.moo.packetloaders.server.FromChannelMessage.message" class="py-name" href="#" onclick="return doclink('link-29', 'message', 'link-8');">message</a></tt><tt class="py-op">.</tt><tt class="py-name">load</tt><tt class="py-op">(</tt><tt class="py-name">str</tt><tt class="py-op">(</tt><tt id="link-30" class="py-name" targets="Variable lacewing.bytereader.ByteReader.buffer=lacewing.bytereader.ByteReader-class.html#buffer"><a title="lacewing.bytereader.ByteReader.buffer" class="py-name" href="#" onclick="return doclink('link-30', 'buffer', 'link-30');">buffer</a></tt><tt class="py-op">(</tt><tt id="link-31" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-31', 'data', 'link-15');">data</a></tt><tt class="py-op">,</tt> <tt class="py-number">6</tt><tt class="py-op">,</tt> <tt class="py-name">messageSize</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L37"></a><tt class="py-lineno"> 37</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-32" class="py-name"><a title="lacewing.moo.packetloaders.client.ClientMessage.message
lacewing.moo.packetloaders.client.PrivateMessage.message
lacewing.moo.packetloaders.client.ToChannelMessage.message
lacewing.moo.packetloaders.message
lacewing.moo.packetloaders.server.FromChannelMessage.message" class="py-name" href="#" onclick="return doclink('link-32', 'message', 'link-8');">message</a></tt> <tt class="py-op">=</tt> <tt id="link-33" class="py-name"><a title="lacewing.moo.packetloaders.client.ClientMessage.message
lacewing.moo.packetloaders.client.PrivateMessage.message
lacewing.moo.packetloaders.client.ToChannelMessage.message
lacewing.moo.packetloaders.message
lacewing.moo.packetloaders.server.FromChannelMessage.message" class="py-name" href="#" onclick="return doclink('link-33', 'message', 'link-8');">message</a></tt> </tt>
<a name="L38"></a><tt class="py-lineno"> 38</tt>  <tt class="py-line">         </tt>
<a name="L39"></a><tt class="py-lineno"> 39</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-number">6</tt> <tt class="py-op">+</tt> <tt class="py-name">messageSize</tt> </tt>
</div><a name="L40"></a><tt class="py-lineno"> 40</tt>  <tt class="py-line">     </tt>
<a name="ClientMessage.generate"></a><div id="ClientMessage.generate-def"><a name="L41"></a><tt class="py-lineno"> 41</tt> <a class="py-toggle" href="#" id="ClientMessage.generate-toggle" onclick="return toggle('ClientMessage.generate');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="lacewing.moo.packetloaders.client.ClientMessage-class.html#generate">generate</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="ClientMessage.generate-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="ClientMessage.generate-expanded"><a name="L42"></a><tt class="py-lineno"> 42</tt>  <tt class="py-line">        <tt class="py-name">messageData</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-34" class="py-name"><a title="lacewing.moo.packetloaders.client.ClientMessage.message
lacewing.moo.packetloaders.client.PrivateMessage.message
lacewing.moo.packetloaders.client.ToChannelMessage.message
lacewing.moo.packetloaders.message
lacewing.moo.packetloaders.server.FromChannelMessage.message" class="py-name" href="#" onclick="return doclink('link-34', 'message', 'link-8');">message</a></tt><tt class="py-op">.</tt><tt id="link-35" class="py-name" targets="Method lacewing.moo.packetloaders.client.ChangeName.generate()=lacewing.moo.packetloaders.client.ChangeName-class.html#generate,Method lacewing.moo.packetloaders.client.ClientMessage.generate()=lacewing.moo.packetloaders.client.ClientMessage-class.html#generate,Method lacewing.moo.packetloaders.client.JoinChannel.generate()=lacewing.moo.packetloaders.client.JoinChannel-class.html#generate,Method lacewing.moo.packetloaders.client.LeaveChannel.generate()=lacewing.moo.packetloaders.client.LeaveChannel-class.html#generate,Method lacewing.moo.packetloaders.client.PrivateMessage.generate()=lacewing.moo.packetloaders.client.PrivateMessage-class.html#generate,Method lacewing.moo.packetloaders.client.SetName.generate()=lacewing.moo.packetloaders.client.SetName-class.html#generate,Method lacewing.moo.packetloaders.client.ToChannelMessage.generate()=lacewing.moo.packetloaders.client.ToChannelMessage-class.html#generate,Method lacewing.moo.packetloaders.message.Message.generate()=lacewing.moo.packetloaders.message.Message-class.html#generate,Method lacewing.moo.packetloaders.server.AssignedID.generate()=lacewing.moo.packetloaders.server.AssignedID-class.html#generate,Method lacewing.moo.packetloaders.server.ChannelJoined.generate()=lacewing.moo.packetloaders.server.ChannelJoined-class.html#generate,Method lacewing.moo.packetloaders.server.FromChannelMessage.generate()=lacewing.moo.packetloaders.server.FromChannelMessage-class.html#generate,Method lacewing.moo.packetloaders.server.MOTD.generate()=lacewing.moo.packetloaders.server.MOTD-class.html#generate,Method lacewing.moo.packetloaders.server.PlayerChanged.generate()=lacewing.moo.packetloaders.server.PlayerChanged-class.html#generate,Method lacewing.moo.packetloaders.server.PlayerLeft.generate()=lacewing.moo.packetloaders.server.PlayerLeft-class.html#generate,Method lacewing.packetloaders.client.ChannelMaster.generate()=lacewing.packetloaders.client.ChannelMaster-class.html#generate,Method lacewing.packetloaders.client.Request.generate()=lacewing.packetloaders.client.Request-class.html#generate,Method lacewing.packetloaders.server.ChannelPeer.generate()=lacewing.packetloaders.server.ChannelPeer-class.html#generate,Method lacewing.packetloaders.server.Peer.generate()=lacewing.packetloaders.server.Peer-class.html#generate,Method lacewing.packetloaders.server.Response.generate()=lacewing.packetloaders.server.Response-class.html#generate"><a title="lacewing.moo.packetloaders.client.ChangeName.generate
lacewing.moo.packetloaders.client.ClientMessage.generate
lacewing.moo.packetloaders.client.JoinChannel.generate
lacewing.moo.packetloaders.client.LeaveChannel.generate
lacewing.moo.packetloaders.client.PrivateMessage.generate
lacewing.moo.packetloaders.client.SetName.generate
lacewing.moo.packetloaders.client.ToChannelMessage.generate
lacewing.moo.packetloaders.message.Message.generate
lacewing.moo.packetloaders.server.AssignedID.generate
lacewing.moo.packetloaders.server.ChannelJoined.generate
lacewing.moo.packetloaders.server.FromChannelMessage.generate
lacewing.moo.packetloaders.server.MOTD.generate
lacewing.moo.packetloaders.server.PlayerChanged.generate
lacewing.moo.packetloaders.server.PlayerLeft.generate
lacewing.packetloaders.client.ChannelMaster.generate
lacewing.packetloaders.client.Request.generate
lacewing.packetloaders.server.ChannelPeer.generate
lacewing.packetloaders.server.Peer.generate
lacewing.packetloaders.server.Response.generate" class="py-name" href="#" onclick="return doclink('link-35', 'generate', 'link-35');">generate</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L43"></a><tt class="py-lineno"> 43</tt>  <tt class="py-line">         </tt>
<a name="L44"></a><tt class="py-lineno"> 44</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">pack</tt><tt class="py-op">(</tt><tt class="py-string">'&lt;HI'</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-36" class="py-name"><a title="lacewing.moo.packetloaders.client.ClientMessage.subchannel
lacewing.moo.packetloaders.client.PrivateMessage.subchannel
lacewing.moo.packetloaders.client.ToChannelMessage.subchannel
lacewing.moo.packetloaders.server.FromChannelMessage.subchannel" class="py-name" href="#" onclick="return doclink('link-36', 'subchannel', 'link-23');">subchannel</a></tt><tt class="py-op">,</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">messageData</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> <tt class="py-op">+</tt> <tt class="py-name">messageData</tt> </tt>
</div></div><a name="L45"></a><tt class="py-lineno"> 45</tt>  <tt class="py-line"> </tt>
<a name="JoinChannel"></a><div id="JoinChannel-def"><a name="L46"></a><tt class="py-lineno"> 46</tt> <a class="py-toggle" href="#" id="JoinChannel-toggle" onclick="return toggle('JoinChannel');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="lacewing.moo.packetloaders.client.JoinChannel-class.html">JoinChannel</a><tt class="py-op">(</tt><tt class="py-base-class">_MooLoader</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="JoinChannel-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="JoinChannel-expanded"><a name="L47"></a><tt class="py-lineno"> 47</tt>  <tt class="py-line">    <tt id="link-37" class="py-name" targets="Variable lacewing.moo.packetloaders.client.JoinChannel.channelName=lacewing.moo.packetloaders.client.JoinChannel-class.html#channelName,Variable lacewing.moo.packetloaders.server.ChannelJoined.channelName=lacewing.moo.packetloaders.server.ChannelJoined-class.html#channelName"><a title="lacewing.moo.packetloaders.client.JoinChannel.channelName
lacewing.moo.packetloaders.server.ChannelJoined.channelName" class="py-name" href="#" onclick="return doclink('link-37', 'channelName', 'link-37');">channelName</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L48"></a><tt class="py-lineno"> 48</tt>  <tt class="py-line">     </tt>
<a name="JoinChannel._load"></a><div id="JoinChannel._load-def"><a name="L49"></a><tt class="py-lineno"> 49</tt> <a class="py-toggle" href="#" id="JoinChannel._load-toggle" onclick="return toggle('JoinChannel._load');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="lacewing.moo.packetloaders.client.JoinChannel-class.html#_load">_load</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">data</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="JoinChannel._load-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="JoinChannel._load-expanded"><a name="L50"></a><tt class="py-lineno"> 50</tt>  <tt class="py-line">        <tt class="py-name">channelSize</tt><tt class="py-op">,</tt> <tt class="py-op">=</tt> <tt class="py-name">unpack_from</tt><tt class="py-op">(</tt><tt class="py-string">'&lt;I'</tt><tt class="py-op">,</tt> <tt id="link-38" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-38', 'data', 'link-15');">data</a></tt><tt class="py-op">)</tt> </tt>
<a name="L51"></a><tt class="py-lineno"> 51</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-39" class="py-name"><a title="lacewing.moo.packetloaders.client.JoinChannel.channelName
lacewing.moo.packetloaders.server.ChannelJoined.channelName" class="py-name" href="#" onclick="return doclink('link-39', 'channelName', 'link-37');">channelName</a></tt> <tt class="py-op">=</tt> <tt id="link-40" class="py-name"><a title="lacewing.moo.packetloaders.common.unpack_string" class="py-name" href="#" onclick="return doclink('link-40', 'unpack_string', 'link-4');">unpack_string</a></tt><tt class="py-op">(</tt><tt id="link-41" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-41', 'data', 'link-15');">data</a></tt><tt class="py-op">,</tt> <tt class="py-name">channelSize</tt><tt class="py-op">,</tt> <tt class="py-number">4</tt><tt class="py-op">)</tt> </tt>
<a name="L52"></a><tt class="py-lineno"> 52</tt>  <tt class="py-line">         </tt>
<a name="L53"></a><tt class="py-lineno"> 53</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-number">4</tt> <tt class="py-op">+</tt> <tt class="py-name">channelSize</tt> </tt>
</div><a name="L54"></a><tt class="py-lineno"> 54</tt>  <tt class="py-line">     </tt>
<a name="JoinChannel.generate"></a><div id="JoinChannel.generate-def"><a name="L55"></a><tt class="py-lineno"> 55</tt> <a class="py-toggle" href="#" id="JoinChannel.generate-toggle" onclick="return toggle('JoinChannel.generate');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="lacewing.moo.packetloaders.client.JoinChannel-class.html#generate">generate</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="JoinChannel.generate-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="JoinChannel.generate-expanded"><a name="L56"></a><tt class="py-lineno"> 56</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">pack</tt><tt class="py-op">(</tt><tt class="py-string">'&lt;I'</tt><tt class="py-op">,</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-42" class="py-name"><a title="lacewing.moo.packetloaders.client.JoinChannel.channelName
lacewing.moo.packetloaders.server.ChannelJoined.channelName" class="py-name" href="#" onclick="return doclink('link-42', 'channelName', 'link-37');">channelName</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt> <tt class="py-op">+</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-43" class="py-name"><a title="lacewing.moo.packetloaders.client.JoinChannel.channelName
lacewing.moo.packetloaders.server.ChannelJoined.channelName" class="py-name" href="#" onclick="return doclink('link-43', 'channelName', 'link-37');">channelName</a></tt> </tt>
</div></div><a name="L57"></a><tt class="py-lineno"> 57</tt>  <tt class="py-line"> </tt>
<a name="LeaveChannel"></a><div id="LeaveChannel-def"><a name="L58"></a><tt class="py-lineno"> 58</tt> <a class="py-toggle" href="#" id="LeaveChannel-toggle" onclick="return toggle('LeaveChannel');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="lacewing.moo.packetloaders.client.LeaveChannel-class.html">LeaveChannel</a><tt class="py-op">(</tt><tt class="py-base-class">_MooLoader</tt><tt class="py-op">,</tt> <tt class="py-base-class">_ChannelMixin</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="LeaveChannel-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="LeaveChannel-expanded"><a name="L59"></a><tt class="py-lineno"> 59</tt>  <tt class="py-line">    <tt id="link-44" class="py-name" targets="Variable lacewing.moo.packetloaders.client.LeaveChannel.channelId=lacewing.moo.packetloaders.client.LeaveChannel-class.html#channelId,Variable lacewing.moo.packetloaders.client.PrivateMessage.channelId=lacewing.moo.packetloaders.client.PrivateMessage-class.html#channelId,Variable lacewing.moo.packetloaders.client.ToChannelMessage.channelId=lacewing.moo.packetloaders.client.ToChannelMessage-class.html#channelId,Variable lacewing.moo.packetloaders.server.ChannelJoined.channelId=lacewing.moo.packetloaders.server.ChannelJoined-class.html#channelId,Variable lacewing.moo.packetloaders.server.FromChannelMessage.channelId=lacewing.moo.packetloaders.server.FromChannelMessage-class.html#channelId,Variable lacewing.moo.packetloaders.server.PlayerLeft.channelId=lacewing.moo.packetloaders.server.PlayerLeft-class.html#channelId"><a title="lacewing.moo.packetloaders.client.LeaveChannel.channelId
lacewing.moo.packetloaders.client.PrivateMessage.channelId
lacewing.moo.packetloaders.client.ToChannelMessage.channelId
lacewing.moo.packetloaders.server.ChannelJoined.channelId
lacewing.moo.packetloaders.server.FromChannelMessage.channelId
lacewing.moo.packetloaders.server.PlayerLeft.channelId" class="py-name" href="#" onclick="return doclink('link-44', 'channelId', 'link-44');">channelId</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L60"></a><tt class="py-lineno"> 60</tt>  <tt class="py-line">     </tt>
<a name="LeaveChannel._load"></a><div id="LeaveChannel._load-def"><a name="L61"></a><tt class="py-lineno"> 61</tt> <a class="py-toggle" href="#" id="LeaveChannel._load-toggle" onclick="return toggle('LeaveChannel._load');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="lacewing.moo.packetloaders.client.LeaveChannel-class.html#_load">_load</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">data</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="LeaveChannel._load-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="LeaveChannel._load-expanded"><a name="L62"></a><tt class="py-lineno"> 62</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-45" class="py-name"><a title="lacewing.moo.packetloaders.client.LeaveChannel.channelId
lacewing.moo.packetloaders.client.PrivateMessage.channelId
lacewing.moo.packetloaders.client.ToChannelMessage.channelId
lacewing.moo.packetloaders.server.ChannelJoined.channelId
lacewing.moo.packetloaders.server.FromChannelMessage.channelId
lacewing.moo.packetloaders.server.PlayerLeft.channelId" class="py-name" href="#" onclick="return doclink('link-45', 'channelId', 'link-44');">channelId</a></tt><tt class="py-op">,</tt> <tt class="py-op">=</tt> <tt class="py-name">unpack_from</tt><tt class="py-op">(</tt><tt class="py-string">'&lt;I'</tt><tt class="py-op">,</tt> <tt id="link-46" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-46', 'data', 'link-15');">data</a></tt><tt class="py-op">)</tt> </tt>
<a name="L63"></a><tt class="py-lineno"> 63</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-number">4</tt> </tt>
</div><a name="L64"></a><tt class="py-lineno"> 64</tt>  <tt class="py-line">     </tt>
<a name="LeaveChannel.generate"></a><div id="LeaveChannel.generate-def"><a name="L65"></a><tt class="py-lineno"> 65</tt> <a class="py-toggle" href="#" id="LeaveChannel.generate-toggle" onclick="return toggle('LeaveChannel.generate');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="lacewing.moo.packetloaders.client.LeaveChannel-class.html#generate">generate</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="LeaveChannel.generate-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="LeaveChannel.generate-expanded"><a name="L66"></a><tt class="py-lineno"> 66</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">pack</tt><tt class="py-op">(</tt><tt class="py-string">'&lt;I'</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-47" class="py-name"><a title="lacewing.moo.packetloaders.client.LeaveChannel.channelId
lacewing.moo.packetloaders.client.PrivateMessage.channelId
lacewing.moo.packetloaders.client.ToChannelMessage.channelId
lacewing.moo.packetloaders.server.ChannelJoined.channelId
lacewing.moo.packetloaders.server.FromChannelMessage.channelId
lacewing.moo.packetloaders.server.PlayerLeft.channelId" class="py-name" href="#" onclick="return doclink('link-47', 'channelId', 'link-44');">channelId</a></tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L67"></a><tt class="py-lineno"> 67</tt>  <tt class="py-line"> </tt>
<a name="ChangeName"></a><div id="ChangeName-def"><a name="L68"></a><tt class="py-lineno"> 68</tt> <a class="py-toggle" href="#" id="ChangeName-toggle" onclick="return toggle('ChangeName');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="lacewing.moo.packetloaders.client.ChangeName-class.html">ChangeName</a><tt class="py-op">(</tt><tt class="py-base-class">_MooLoader</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="ChangeName-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="ChangeName-expanded"><a name="L69"></a><tt class="py-lineno"> 69</tt>  <tt class="py-line">    <tt id="link-48" class="py-name" targets="Variable lacewing.moo.packetloaders.client.ChangeName.newName=lacewing.moo.packetloaders.client.ChangeName-class.html#newName"><a title="lacewing.moo.packetloaders.client.ChangeName.newName" class="py-name" href="#" onclick="return doclink('link-48', 'newName', 'link-48');">newName</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L70"></a><tt class="py-lineno"> 70</tt>  <tt class="py-line">     </tt>
<a name="ChangeName._load"></a><div id="ChangeName._load-def"><a name="L71"></a><tt class="py-lineno"> 71</tt> <a class="py-toggle" href="#" id="ChangeName._load-toggle" onclick="return toggle('ChangeName._load');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="lacewing.moo.packetloaders.client.ChangeName-class.html#_load">_load</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">data</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="ChangeName._load-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="ChangeName._load-expanded"><a name="L72"></a><tt class="py-lineno"> 72</tt>  <tt class="py-line">        <tt class="py-name">nameSize</tt><tt class="py-op">,</tt> <tt class="py-op">=</tt> <tt class="py-name">unpack_from</tt><tt class="py-op">(</tt><tt class="py-string">'&lt;I'</tt><tt class="py-op">,</tt> <tt id="link-49" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-49', 'data', 'link-15');">data</a></tt><tt class="py-op">)</tt> </tt>
<a name="L73"></a><tt class="py-lineno"> 73</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-50" class="py-name"><a title="lacewing.moo.packetloaders.client.ChangeName.newName" class="py-name" href="#" onclick="return doclink('link-50', 'newName', 'link-48');">newName</a></tt> <tt class="py-op">=</tt> <tt id="link-51" class="py-name"><a title="lacewing.moo.packetloaders.common.unpack_string" class="py-name" href="#" onclick="return doclink('link-51', 'unpack_string', 'link-4');">unpack_string</a></tt><tt class="py-op">(</tt><tt id="link-52" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-52', 'data', 'link-15');">data</a></tt><tt class="py-op">,</tt> <tt class="py-name">nameSize</tt><tt class="py-op">,</tt> <tt class="py-number">4</tt><tt class="py-op">)</tt> </tt>
<a name="L74"></a><tt class="py-lineno"> 74</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-number">4</tt> <tt class="py-op">+</tt> <tt class="py-name">nameSize</tt> </tt>
</div><a name="L75"></a><tt class="py-lineno"> 75</tt>  <tt class="py-line">     </tt>
<a name="ChangeName.generate"></a><div id="ChangeName.generate-def"><a name="L76"></a><tt class="py-lineno"> 76</tt> <a class="py-toggle" href="#" id="ChangeName.generate-toggle" onclick="return toggle('ChangeName.generate');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="lacewing.moo.packetloaders.client.ChangeName-class.html#generate">generate</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="ChangeName.generate-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="ChangeName.generate-expanded"><a name="L77"></a><tt class="py-lineno"> 77</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">pack</tt><tt class="py-op">(</tt><tt class="py-string">'&lt;I'</tt><tt class="py-op">,</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-53" class="py-name"><a title="lacewing.moo.packetloaders.client.ChangeName.newName" class="py-name" href="#" onclick="return doclink('link-53', 'newName', 'link-48');">newName</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt> <tt class="py-op">+</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-54" class="py-name"><a title="lacewing.moo.packetloaders.client.ChangeName.newName" class="py-name" href="#" onclick="return doclink('link-54', 'newName', 'link-48');">newName</a></tt> </tt>
</div></div><a name="L78"></a><tt class="py-lineno"> 78</tt>  <tt class="py-line"> </tt>
<a name="ToChannelMessage"></a><div id="ToChannelMessage-def"><a name="L79"></a><tt class="py-lineno"> 79</tt> <a class="py-toggle" href="#" id="ToChannelMessage-toggle" onclick="return toggle('ToChannelMessage');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="lacewing.moo.packetloaders.client.ToChannelMessage-class.html">ToChannelMessage</a><tt class="py-op">(</tt><tt class="py-base-class">_MooLoader</tt><tt class="py-op">,</tt> <tt class="py-base-class">_ChannelMixin</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="ToChannelMessage-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="ToChannelMessage-expanded"><a name="L80"></a><tt class="py-lineno"> 80</tt>  <tt class="py-line">    <tt id="link-55" class="py-name"><a title="lacewing.moo.packetloaders.client.ClientMessage.subchannel
lacewing.moo.packetloaders.client.PrivateMessage.subchannel
lacewing.moo.packetloaders.client.ToChannelMessage.subchannel
lacewing.moo.packetloaders.server.FromChannelMessage.subchannel" class="py-name" href="#" onclick="return doclink('link-55', 'subchannel', 'link-23');">subchannel</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L81"></a><tt class="py-lineno"> 81</tt>  <tt class="py-line">    <tt id="link-56" class="py-name"><a title="lacewing.moo.packetloaders.client.ClientMessage.message
lacewing.moo.packetloaders.client.PrivateMessage.message
lacewing.moo.packetloaders.client.ToChannelMessage.message
lacewing.moo.packetloaders.message
lacewing.moo.packetloaders.server.FromChannelMessage.message" class="py-name" href="#" onclick="return doclink('link-56', 'message', 'link-8');">message</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L82"></a><tt class="py-lineno"> 82</tt>  <tt class="py-line">    <tt id="link-57" class="py-name"><a title="lacewing.moo.packetloaders.client.LeaveChannel.channelId
lacewing.moo.packetloaders.client.PrivateMessage.channelId
lacewing.moo.packetloaders.client.ToChannelMessage.channelId
lacewing.moo.packetloaders.server.ChannelJoined.channelId
lacewing.moo.packetloaders.server.FromChannelMessage.channelId
lacewing.moo.packetloaders.server.PlayerLeft.channelId" class="py-name" href="#" onclick="return doclink('link-57', 'channelId', 'link-44');">channelId</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L83"></a><tt class="py-lineno"> 83</tt>  <tt class="py-line">     </tt>
<a name="ToChannelMessage._load"></a><div id="ToChannelMessage._load-def"><a name="L84"></a><tt class="py-lineno"> 84</tt> <a class="py-toggle" href="#" id="ToChannelMessage._load-toggle" onclick="return toggle('ToChannelMessage._load');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="lacewing.moo.packetloaders.client.ToChannelMessage-class.html#_load">_load</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">data</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="ToChannelMessage._load-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="ToChannelMessage._load-expanded"><a name="L85"></a><tt class="py-lineno"> 85</tt>  <tt class="py-line">        <tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-58" class="py-name"><a title="lacewing.moo.packetloaders.client.ClientMessage.subchannel
lacewing.moo.packetloaders.client.PrivateMessage.subchannel
lacewing.moo.packetloaders.client.ToChannelMessage.subchannel
lacewing.moo.packetloaders.server.FromChannelMessage.subchannel" class="py-name" href="#" onclick="return doclink('link-58', 'subchannel', 'link-23');">subchannel</a></tt><tt class="py-op">,</tt> </tt>
<a name="L86"></a><tt class="py-lineno"> 86</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-59" class="py-name"><a title="lacewing.moo.packetloaders.client.LeaveChannel.channelId
lacewing.moo.packetloaders.client.PrivateMessage.channelId
lacewing.moo.packetloaders.client.ToChannelMessage.channelId
lacewing.moo.packetloaders.server.ChannelJoined.channelId
lacewing.moo.packetloaders.server.FromChannelMessage.channelId
lacewing.moo.packetloaders.server.PlayerLeft.channelId" class="py-name" href="#" onclick="return doclink('link-59', 'channelId', 'link-44');">channelId</a></tt><tt class="py-op">,</tt> </tt>
<a name="L87"></a><tt class="py-lineno"> 87</tt>  <tt class="py-line">        <tt class="py-name">messageSize</tt><tt class="py-op">)</tt> <tt class="py-op">=</tt> <tt class="py-name">unpack_from</tt><tt class="py-op">(</tt><tt class="py-string">'&lt;HII'</tt><tt class="py-op">,</tt> <tt id="link-60" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-60', 'data', 'link-15');">data</a></tt><tt class="py-op">)</tt> </tt>
<a name="L88"></a><tt class="py-lineno"> 88</tt>  <tt class="py-line">         </tt>
<a name="L89"></a><tt class="py-lineno"> 89</tt>  <tt class="py-line">        <tt id="link-61" class="py-name"><a title="lacewing.moo.packetloaders.client.ClientMessage.message
lacewing.moo.packetloaders.client.PrivateMessage.message
lacewing.moo.packetloaders.client.ToChannelMessage.message
lacewing.moo.packetloaders.message
lacewing.moo.packetloaders.server.FromChannelMessage.message" class="py-name" href="#" onclick="return doclink('link-61', 'message', 'link-8');">message</a></tt> <tt class="py-op">=</tt> <tt id="link-62" class="py-name"><a title="lacewing.moo.packetloaders.message.Message" class="py-name" href="#" onclick="return doclink('link-62', 'Message', 'link-9');">Message</a></tt><tt class="py-op">(</tt><tt class="py-op">**</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">settings</tt><tt class="py-op">)</tt> </tt>
<a name="L90"></a><tt class="py-lineno"> 90</tt>  <tt class="py-line">        <tt id="link-63" class="py-name"><a title="lacewing.moo.packetloaders.client.ClientMessage.message
lacewing.moo.packetloaders.client.PrivateMessage.message
lacewing.moo.packetloaders.client.ToChannelMessage.message
lacewing.moo.packetloaders.message
lacewing.moo.packetloaders.server.FromChannelMessage.message" class="py-name" href="#" onclick="return doclink('link-63', 'message', 'link-8');">message</a></tt><tt class="py-op">.</tt><tt class="py-name">load</tt><tt class="py-op">(</tt><tt class="py-name">str</tt><tt class="py-op">(</tt><tt id="link-64" class="py-name"><a title="lacewing.bytereader.ByteReader.buffer" class="py-name" href="#" onclick="return doclink('link-64', 'buffer', 'link-30');">buffer</a></tt><tt class="py-op">(</tt><tt id="link-65" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-65', 'data', 'link-15');">data</a></tt><tt class="py-op">,</tt> <tt class="py-number">10</tt><tt class="py-op">,</tt> <tt class="py-name">messageSize</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L91"></a><tt class="py-lineno"> 91</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-66" class="py-name"><a title="lacewing.moo.packetloaders.client.ClientMessage.message
lacewing.moo.packetloaders.client.PrivateMessage.message
lacewing.moo.packetloaders.client.ToChannelMessage.message
lacewing.moo.packetloaders.message
lacewing.moo.packetloaders.server.FromChannelMessage.message" class="py-name" href="#" onclick="return doclink('link-66', 'message', 'link-8');">message</a></tt> <tt class="py-op">=</tt> <tt id="link-67" class="py-name"><a title="lacewing.moo.packetloaders.client.ClientMessage.message
lacewing.moo.packetloaders.client.PrivateMessage.message
lacewing.moo.packetloaders.client.ToChannelMessage.message
lacewing.moo.packetloaders.message
lacewing.moo.packetloaders.server.FromChannelMessage.message" class="py-name" href="#" onclick="return doclink('link-67', 'message', 'link-8');">message</a></tt> </tt>
<a name="L92"></a><tt class="py-lineno"> 92</tt>  <tt class="py-line">         </tt>
<a name="L93"></a><tt class="py-lineno"> 93</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-number">10</tt> <tt class="py-op">+</tt> <tt class="py-name">messageSize</tt> </tt>
</div><a name="L94"></a><tt class="py-lineno"> 94</tt>  <tt class="py-line">     </tt>
<a name="ToChannelMessage.generate"></a><div id="ToChannelMessage.generate-def"><a name="L95"></a><tt class="py-lineno"> 95</tt> <a class="py-toggle" href="#" id="ToChannelMessage.generate-toggle" onclick="return toggle('ToChannelMessage.generate');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="lacewing.moo.packetloaders.client.ToChannelMessage-class.html#generate">generate</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="ToChannelMessage.generate-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="ToChannelMessage.generate-expanded"><a name="L96"></a><tt class="py-lineno"> 96</tt>  <tt class="py-line">        <tt class="py-name">messageData</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-68" class="py-name"><a title="lacewing.moo.packetloaders.client.ClientMessage.message
lacewing.moo.packetloaders.client.PrivateMessage.message
lacewing.moo.packetloaders.client.ToChannelMessage.message
lacewing.moo.packetloaders.message
lacewing.moo.packetloaders.server.FromChannelMessage.message" class="py-name" href="#" onclick="return doclink('link-68', 'message', 'link-8');">message</a></tt><tt class="py-op">.</tt><tt id="link-69" class="py-name"><a title="lacewing.moo.packetloaders.client.ChangeName.generate
lacewing.moo.packetloaders.client.ClientMessage.generate
lacewing.moo.packetloaders.client.JoinChannel.generate
lacewing.moo.packetloaders.client.LeaveChannel.generate
lacewing.moo.packetloaders.client.PrivateMessage.generate
lacewing.moo.packetloaders.client.SetName.generate
lacewing.moo.packetloaders.client.ToChannelMessage.generate
lacewing.moo.packetloaders.message.Message.generate
lacewing.moo.packetloaders.server.AssignedID.generate
lacewing.moo.packetloaders.server.ChannelJoined.generate
lacewing.moo.packetloaders.server.FromChannelMessage.generate
lacewing.moo.packetloaders.server.MOTD.generate
lacewing.moo.packetloaders.server.PlayerChanged.generate
lacewing.moo.packetloaders.server.PlayerLeft.generate
lacewing.packetloaders.client.ChannelMaster.generate
lacewing.packetloaders.client.Request.generate
lacewing.packetloaders.server.ChannelPeer.generate
lacewing.packetloaders.server.Peer.generate
lacewing.packetloaders.server.Response.generate" class="py-name" href="#" onclick="return doclink('link-69', 'generate', 'link-35');">generate</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L97"></a><tt class="py-lineno"> 97</tt>  <tt class="py-line">         </tt>
<a name="L98"></a><tt class="py-lineno"> 98</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">pack</tt><tt class="py-op">(</tt><tt class="py-string">'&lt;HII'</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-70" class="py-name"><a title="lacewing.moo.packetloaders.client.ClientMessage.subchannel
lacewing.moo.packetloaders.client.PrivateMessage.subchannel
lacewing.moo.packetloaders.client.ToChannelMessage.subchannel
lacewing.moo.packetloaders.server.FromChannelMessage.subchannel" class="py-name" href="#" onclick="return doclink('link-70', 'subchannel', 'link-23');">subchannel</a></tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-71" class="py-name"><a title="lacewing.moo.packetloaders.client.LeaveChannel.channelId
lacewing.moo.packetloaders.client.PrivateMessage.channelId
lacewing.moo.packetloaders.client.ToChannelMessage.channelId
lacewing.moo.packetloaders.server.ChannelJoined.channelId
lacewing.moo.packetloaders.server.FromChannelMessage.channelId
lacewing.moo.packetloaders.server.PlayerLeft.channelId" class="py-name" href="#" onclick="return doclink('link-71', 'channelId', 'link-44');">channelId</a></tt><tt class="py-op">,</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">messageData</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> <tt class="py-op">+</tt> <tt class="py-name">messageData</tt> </tt>
</div></div><a name="L99"></a><tt class="py-lineno"> 99</tt>  <tt class="py-line"> </tt>
<a name="PrivateMessage"></a><div id="PrivateMessage-def"><a name="L100"></a><tt class="py-lineno">100</tt> <a class="py-toggle" href="#" id="PrivateMessage-toggle" onclick="return toggle('PrivateMessage');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="lacewing.moo.packetloaders.client.PrivateMessage-class.html">PrivateMessage</a><tt class="py-op">(</tt><tt class="py-base-class">_MooLoader</tt><tt class="py-op">,</tt> <tt class="py-base-class">_ChannelMixin</tt><tt class="py-op">,</tt> <tt class="py-base-class">_ConnectionMixin</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="PrivateMessage-collapsed" style="display:none;" pad="+++" indent="++++"></div><div id="PrivateMessage-expanded"><a name="L101"></a><tt class="py-lineno">101</tt>  <tt class="py-line">    <tt id="link-72" class="py-name"><a title="lacewing.moo.packetloaders.client.ClientMessage.subchannel
lacewing.moo.packetloaders.client.PrivateMessage.subchannel
lacewing.moo.packetloaders.client.ToChannelMessage.subchannel
lacewing.moo.packetloaders.server.FromChannelMessage.subchannel" class="py-name" href="#" onclick="return doclink('link-72', 'subchannel', 'link-23');">subchannel</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L102"></a><tt class="py-lineno">102</tt>  <tt class="py-line">    <tt id="link-73" class="py-name"><a title="lacewing.moo.packetloaders.client.ClientMessage.message
lacewing.moo.packetloaders.client.PrivateMessage.message
lacewing.moo.packetloaders.client.ToChannelMessage.message
lacewing.moo.packetloaders.message
lacewing.moo.packetloaders.server.FromChannelMessage.message" class="py-name" href="#" onclick="return doclink('link-73', 'message', 'link-8');">message</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L103"></a><tt class="py-lineno">103</tt>  <tt class="py-line">    <tt id="link-74" class="py-name"><a title="lacewing.moo.packetloaders.client.LeaveChannel.channelId
lacewing.moo.packetloaders.client.PrivateMessage.channelId
lacewing.moo.packetloaders.client.ToChannelMessage.channelId
lacewing.moo.packetloaders.server.ChannelJoined.channelId
lacewing.moo.packetloaders.server.FromChannelMessage.channelId
lacewing.moo.packetloaders.server.PlayerLeft.channelId" class="py-name" href="#" onclick="return doclink('link-74', 'channelId', 'link-44');">channelId</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L104"></a><tt class="py-lineno">104</tt>  <tt class="py-line">    <tt id="link-75" class="py-name" targets="Variable lacewing.moo.packetloaders.client.PrivateMessage.playerId=lacewing.moo.packetloaders.client.PrivateMessage-class.html#playerId,Variable lacewing.moo.packetloaders.server.AssignedID.playerId=lacewing.moo.packetloaders.server.AssignedID-class.html#playerId,Variable lacewing.moo.packetloaders.server.ChannelJoined.playerId=lacewing.moo.packetloaders.server.ChannelJoined-class.html#playerId,Variable lacewing.moo.packetloaders.server.FromChannelMessage.playerId=lacewing.moo.packetloaders.server.FromChannelMessage-class.html#playerId,Variable lacewing.moo.packetloaders.server.PlayerChanged.playerId=lacewing.moo.packetloaders.server.PlayerChanged-class.html#playerId,Variable lacewing.moo.packetloaders.server.PlayerLeft.playerId=lacewing.moo.packetloaders.server.PlayerLeft-class.html#playerId,Variable lacewing.packetloaders.server.Response.playerId=lacewing.packetloaders.server.Response-class.html#playerId"><a title="lacewing.moo.packetloaders.client.PrivateMessage.playerId
lacewing.moo.packetloaders.server.AssignedID.playerId
lacewing.moo.packetloaders.server.ChannelJoined.playerId
lacewing.moo.packetloaders.server.FromChannelMessage.playerId
lacewing.moo.packetloaders.server.PlayerChanged.playerId
lacewing.moo.packetloaders.server.PlayerLeft.playerId
lacewing.packetloaders.server.Response.playerId" class="py-name" href="#" onclick="return doclink('link-75', 'playerId', 'link-75');">playerId</a></tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L105"></a><tt class="py-lineno">105</tt>  <tt class="py-line">     </tt>
<a name="PrivateMessage._load"></a><div id="PrivateMessage._load-def"><a name="L106"></a><tt class="py-lineno">106</tt> <a class="py-toggle" href="#" id="PrivateMessage._load-toggle" onclick="return toggle('PrivateMessage._load');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="lacewing.moo.packetloaders.client.PrivateMessage-class.html#_load">_load</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">data</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="PrivateMessage._load-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="PrivateMessage._load-expanded"><a name="L107"></a><tt class="py-lineno">107</tt>  <tt class="py-line">        <tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-76" class="py-name"><a title="lacewing.moo.packetloaders.client.ClientMessage.subchannel
lacewing.moo.packetloaders.client.PrivateMessage.subchannel
lacewing.moo.packetloaders.client.ToChannelMessage.subchannel
lacewing.moo.packetloaders.server.FromChannelMessage.subchannel" class="py-name" href="#" onclick="return doclink('link-76', 'subchannel', 'link-23');">subchannel</a></tt><tt class="py-op">,</tt> </tt>
<a name="L108"></a><tt class="py-lineno">108</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-77" class="py-name"><a title="lacewing.moo.packetloaders.client.LeaveChannel.channelId
lacewing.moo.packetloaders.client.PrivateMessage.channelId
lacewing.moo.packetloaders.client.ToChannelMessage.channelId
lacewing.moo.packetloaders.server.ChannelJoined.channelId
lacewing.moo.packetloaders.server.FromChannelMessage.channelId
lacewing.moo.packetloaders.server.PlayerLeft.channelId" class="py-name" href="#" onclick="return doclink('link-77', 'channelId', 'link-44');">channelId</a></tt><tt class="py-op">,</tt> </tt>
<a name="L109"></a><tt class="py-lineno">109</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-78" class="py-name"><a title="lacewing.moo.packetloaders.client.PrivateMessage.playerId
lacewing.moo.packetloaders.server.AssignedID.playerId
lacewing.moo.packetloaders.server.ChannelJoined.playerId
lacewing.moo.packetloaders.server.FromChannelMessage.playerId
lacewing.moo.packetloaders.server.PlayerChanged.playerId
lacewing.moo.packetloaders.server.PlayerLeft.playerId
lacewing.packetloaders.server.Response.playerId" class="py-name" href="#" onclick="return doclink('link-78', 'playerId', 'link-75');">playerId</a></tt><tt class="py-op">,</tt> </tt>
<a name="L110"></a><tt class="py-lineno">110</tt>  <tt class="py-line">        <tt class="py-name">messageSize</tt><tt class="py-op">)</tt> <tt class="py-op">=</tt> <tt class="py-name">unpack_from</tt><tt class="py-op">(</tt><tt class="py-string">'&lt;HIII'</tt><tt class="py-op">,</tt> <tt id="link-79" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-79', 'data', 'link-15');">data</a></tt><tt class="py-op">)</tt> </tt>
<a name="L111"></a><tt class="py-lineno">111</tt>  <tt class="py-line">         </tt>
<a name="L112"></a><tt class="py-lineno">112</tt>  <tt class="py-line">        <tt id="link-80" class="py-name"><a title="lacewing.moo.packetloaders.client.ClientMessage.message
lacewing.moo.packetloaders.client.PrivateMessage.message
lacewing.moo.packetloaders.client.ToChannelMessage.message
lacewing.moo.packetloaders.message
lacewing.moo.packetloaders.server.FromChannelMessage.message" class="py-name" href="#" onclick="return doclink('link-80', 'message', 'link-8');">message</a></tt> <tt class="py-op">=</tt> <tt id="link-81" class="py-name"><a title="lacewing.moo.packetloaders.message.Message" class="py-name" href="#" onclick="return doclink('link-81', 'Message', 'link-9');">Message</a></tt><tt class="py-op">(</tt><tt class="py-op">**</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">settings</tt><tt class="py-op">)</tt> </tt>
<a name="L113"></a><tt class="py-lineno">113</tt>  <tt class="py-line">        <tt id="link-82" class="py-name"><a title="lacewing.moo.packetloaders.client.ClientMessage.message
lacewing.moo.packetloaders.client.PrivateMessage.message
lacewing.moo.packetloaders.client.ToChannelMessage.message
lacewing.moo.packetloaders.message
lacewing.moo.packetloaders.server.FromChannelMessage.message" class="py-name" href="#" onclick="return doclink('link-82', 'message', 'link-8');">message</a></tt><tt class="py-op">.</tt><tt class="py-name">load</tt><tt class="py-op">(</tt><tt class="py-name">str</tt><tt class="py-op">(</tt><tt id="link-83" class="py-name"><a title="lacewing.bytereader.ByteReader.buffer" class="py-name" href="#" onclick="return doclink('link-83', 'buffer', 'link-30');">buffer</a></tt><tt class="py-op">(</tt><tt id="link-84" class="py-name"><a title="lacewing.bytereader.ByteReader.data" class="py-name" href="#" onclick="return doclink('link-84', 'data', 'link-15');">data</a></tt><tt class="py-op">,</tt> <tt class="py-number">14</tt><tt class="py-op">,</tt> <tt class="py-name">messageSize</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L114"></a><tt class="py-lineno">114</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-85" class="py-name"><a title="lacewing.moo.packetloaders.client.ClientMessage.message
lacewing.moo.packetloaders.client.PrivateMessage.message
lacewing.moo.packetloaders.client.ToChannelMessage.message
lacewing.moo.packetloaders.message
lacewing.moo.packetloaders.server.FromChannelMessage.message" class="py-name" href="#" onclick="return doclink('link-85', 'message', 'link-8');">message</a></tt> <tt class="py-op">=</tt> <tt id="link-86" class="py-name"><a title="lacewing.moo.packetloaders.client.ClientMessage.message
lacewing.moo.packetloaders.client.PrivateMessage.message
lacewing.moo.packetloaders.client.ToChannelMessage.message
lacewing.moo.packetloaders.message
lacewing.moo.packetloaders.server.FromChannelMessage.message" class="py-name" href="#" onclick="return doclink('link-86', 'message', 'link-8');">message</a></tt> </tt>
<a name="L115"></a><tt class="py-lineno">115</tt>  <tt class="py-line">         </tt>
<a name="L116"></a><tt class="py-lineno">116</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-number">14</tt> <tt class="py-op">+</tt> <tt class="py-name">messageSize</tt> </tt>
</div><a name="L117"></a><tt class="py-lineno">117</tt>  <tt class="py-line">     </tt>
<a name="PrivateMessage.generate"></a><div id="PrivateMessage.generate-def"><a name="L118"></a><tt class="py-lineno">118</tt> <a class="py-toggle" href="#" id="PrivateMessage.generate-toggle" onclick="return toggle('PrivateMessage.generate');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="lacewing.moo.packetloaders.client.PrivateMessage-class.html#generate">generate</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="PrivateMessage.generate-collapsed" style="display:none;" pad="+++" indent="++++++++"></div><div id="PrivateMessage.generate-expanded"><a name="L119"></a><tt class="py-lineno">119</tt>  <tt class="py-line">        <tt class="py-name">messageData</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-87" class="py-name"><a title="lacewing.moo.packetloaders.client.ClientMessage.message
lacewing.moo.packetloaders.client.PrivateMessage.message
lacewing.moo.packetloaders.client.ToChannelMessage.message
lacewing.moo.packetloaders.message
lacewing.moo.packetloaders.server.FromChannelMessage.message" class="py-name" href="#" onclick="return doclink('link-87', 'message', 'link-8');">message</a></tt><tt class="py-op">.</tt><tt id="link-88" class="py-name"><a title="lacewing.moo.packetloaders.client.ChangeName.generate
lacewing.moo.packetloaders.client.ClientMessage.generate
lacewing.moo.packetloaders.client.JoinChannel.generate
lacewing.moo.packetloaders.client.LeaveChannel.generate
lacewing.moo.packetloaders.client.PrivateMessage.generate
lacewing.moo.packetloaders.client.SetName.generate
lacewing.moo.packetloaders.client.ToChannelMessage.generate
lacewing.moo.packetloaders.message.Message.generate
lacewing.moo.packetloaders.server.AssignedID.generate
lacewing.moo.packetloaders.server.ChannelJoined.generate
lacewing.moo.packetloaders.server.FromChannelMessage.generate
lacewing.moo.packetloaders.server.MOTD.generate
lacewing.moo.packetloaders.server.PlayerChanged.generate
lacewing.moo.packetloaders.server.PlayerLeft.generate
lacewing.packetloaders.client.ChannelMaster.generate
lacewing.packetloaders.client.Request.generate
lacewing.packetloaders.server.ChannelPeer.generate
lacewing.packetloaders.server.Peer.generate
lacewing.packetloaders.server.Response.generate" class="py-name" href="#" onclick="return doclink('link-88', 'generate', 'link-35');">generate</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L120"></a><tt class="py-lineno">120</tt>  <tt class="py-line">         </tt>
<a name="L121"></a><tt class="py-lineno">121</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">pack</tt><tt class="py-op">(</tt><tt class="py-string">'&lt;HIII'</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-89" class="py-name"><a title="lacewing.moo.packetloaders.client.ClientMessage.subchannel
lacewing.moo.packetloaders.client.PrivateMessage.subchannel
lacewing.moo.packetloaders.client.ToChannelMessage.subchannel
lacewing.moo.packetloaders.server.FromChannelMessage.subchannel" class="py-name" href="#" onclick="return doclink('link-89', 'subchannel', 'link-23');">subchannel</a></tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-90" class="py-name"><a title="lacewing.moo.packetloaders.client.LeaveChannel.channelId
lacewing.moo.packetloaders.client.PrivateMessage.channelId
lacewing.moo.packetloaders.client.ToChannelMessage.channelId
lacewing.moo.packetloaders.server.ChannelJoined.channelId
lacewing.moo.packetloaders.server.FromChannelMessage.channelId
lacewing.moo.packetloaders.server.PlayerLeft.channelId" class="py-name" href="#" onclick="return doclink('link-90', 'channelId', 'link-44');">channelId</a></tt><tt class="py-op">,</tt>  </tt>
<a name="L122"></a><tt class="py-lineno">122</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-91" class="py-name"><a title="lacewing.moo.packetloaders.client.PrivateMessage.playerId
lacewing.moo.packetloaders.server.AssignedID.playerId
lacewing.moo.packetloaders.server.ChannelJoined.playerId
lacewing.moo.packetloaders.server.FromChannelMessage.playerId
lacewing.moo.packetloaders.server.PlayerChanged.playerId
lacewing.moo.packetloaders.server.PlayerLeft.playerId
lacewing.packetloaders.server.Response.playerId" class="py-name" href="#" onclick="return doclink('link-91', 'playerId', 'link-75');">playerId</a></tt><tt class="py-op">,</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">messageData</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> <tt class="py-op">+</tt> <tt class="py-name">messageData</tt> </tt>
</div></div><a name="L123"></a><tt class="py-lineno">123</tt>  <tt class="py-line"> </tt>
<a name="L124"></a><tt class="py-lineno">124</tt>  <tt class="py-line"><tt class="py-name">__all__</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-string">'SetName'</tt><tt class="py-op">,</tt> <tt class="py-string">'ClientMessage'</tt><tt class="py-op">,</tt> <tt class="py-string">'JoinChannel'</tt><tt class="py-op">,</tt> <tt class="py-string">'LeaveChannel'</tt><tt class="py-op">,</tt>  </tt>
<a name="L125"></a><tt class="py-lineno">125</tt>  <tt class="py-line">    <tt class="py-string">'ChangeName'</tt><tt class="py-op">,</tt> <tt class="py-string">'ToChannelMessage'</tt><tt class="py-op">,</tt> <tt class="py-string">'PrivateMessage'</tt><tt class="py-op">]</tt> </tt>
<a name="L126"></a><tt class="py-lineno">126</tt>  <tt class="py-line"> </tt><script type="text/javascript">
<!--
expandto(location.href);
// -->
</script>
</pre>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="lacewing-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="http://mp2.dk">Python Lacewing Library</a></th>
          </tr></table></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Thu Dec 22 06:20:00 2011
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
